package com.leetcode.蓝桥杯.十二届国赛;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class 编程题9 {
	public static void main(String[] args) {
		Input input = new Input();
		
		input.close();
	}
}

class Input{
	BufferedReader buf;
	StringTokenizer tok;
	
	public Input() {
		buf = new BufferedReader(new InputStreamReader(System.in));
	}
	
	boolean hasNext() {
		if(tok == null || !tok.hasMoreElements()) {
			try {
				tok = new StringTokenizer(buf.readLine());
			} catch (IOException e) {
				return false;
			}
		}
		return true;
	}
	
	String next() {
		if(hasNext())
			return tok.nextToken();
		return null;
	}
	
	String nextLine() {
		try {
			return buf.readLine();
		} catch (IOException e) {
			return null;
		}
	}
	void close() {
		if(buf != null) {
			try {
				buf.close();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}
}
